package com.ruoyi.project.jsrh.news.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 记录资讯详细信息对象 zt_news_info
 *
 * @author ruoyi
 * @date 2020-06-09
 */
public class ZtNewsInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id，自增长 */
    private Long newsId;

    /** 资讯编码，10位字符数字编码 */
    @Excel(name = "资讯编码，10位字符数字编码")
    private String newsCode;

    /** 资讯名称 */
    @Excel(name = "资讯名称")
    private String newsTitle;

    /** 资讯分类id，关联资讯类别表 */
    @Excel(name = "资讯分类id，关联资讯类别表")
    private Long newsTypeId;

    /** 产品封面图 */
    @Excel(name = "产品封面图")
    private String newsLogo;

    /** 促销活动id */
    @Excel(name = "促销活动id")
    private Long specialId;

    /** 促销活动标题 */
    @Excel(name = "促销活动标题")
    private String specialName;

    /** 温馨提示 */
    @Excel(name = "温馨提示")
    private String prompt;

    /** 是否推荐(用于内容详情页下方)；1：是，0：否 */
    @Excel(name = "是否推荐(用于内容详情页下方)；1：是，0：否")
    private Integer recommend;

    /** 资讯介绍（富文本） */
    @Excel(name = "资讯介绍", readConverterExp = "富=文本")
    private String introduce;

    /** 资讯状态，0：上架，1：下架，2：删除 */
    @Excel(name = "资讯状态，0：上架，1：下架，2：删除")
    private Integer status;

    /** 资讯描述 */
    @Excel(name = "资讯描述")
    private String newsDescription;

    public void setNewsId(Long newsId)
    {
        this.newsId = newsId;
    }

    public Long getNewsId()
    {
        return newsId;
    }
    public void setNewsCode(String newsCode)
    {
        this.newsCode = newsCode;
    }

    public String getNewsCode()
    {
        return newsCode;
    }
    public void setNewsTitle(String newsTitle)
    {
        this.newsTitle = newsTitle;
    }

    public String getNewsTitle()
    {
        return newsTitle;
    }
    public void setNewsTypeId(Long newsTypeId)
    {
        this.newsTypeId = newsTypeId;
    }

    public Long getNewsTypeId()
    {
        return newsTypeId;
    }
    public void setNewsLogo(String newsLogo)
    {
        this.newsLogo = newsLogo;
    }

    public String getNewsLogo()
    {
        return newsLogo;
    }
    public void setSpecialId(Long specialId)
    {
        this.specialId = specialId;
    }

    public Long getSpecialId()
    {
        return specialId;
    }
    public void setSpecialName(String specialName)
    {
        this.specialName = specialName;
    }

    public String getSpecialName()
    {
        return specialName;
    }
    public void setPrompt(String prompt)
    {
        this.prompt = prompt;
    }

    public String getPrompt()
    {
        return prompt;
    }
    public void setRecommend(Integer recommend)
    {
        this.recommend = recommend;
    }

    public Integer getRecommend()
    {
        return recommend;
    }
    public void setIntroduce(String introduce)
    {
        this.introduce = introduce;
    }

    public String getIntroduce()
    {
        return introduce;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setNewsDescription(String newsDescription)
    {
        this.newsDescription = newsDescription;
    }

    public String getNewsDescription()
    {
        return newsDescription;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("newsId", getNewsId())
                .append("newsCode", getNewsCode())
                .append("newsTitle", getNewsTitle())
                .append("newsTypeId", getNewsTypeId())
                .append("newsLogo", getNewsLogo())
                .append("specialId", getSpecialId())
                .append("specialName", getSpecialName())
                .append("prompt", getPrompt())
                .append("recommend", getRecommend())
                .append("introduce", getIntroduce())
                .append("createTime", getCreateTime())
                .append("status", getStatus())
                .append("newsDescription", getNewsDescription())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
